<template>
  <div>
    <div class="post-container " @click="topicTodetail(tabId,topicItem)">                
      <div class="post-thumb"><img v-lazy="topicimg" /></div>
      <div class="post-content">
          <p class="post-title">{{title}}</p>
          <p class="yl-2gz post-abbreviations">{{followNumber}}人关注</p>
      </div>
    </div>
    <div class="body-sep"></div>
  </div>
</template>
<script>
export default {
  props: [
    "topictype",
    "followNumber",
    "title",
    "abbreviations",
    "topicimg",
    "tabId",
    "topicItem"
  ],
  methods: {
    topicTodetail(tabId, topicItem) {
      this.$emit("topicback", { tabId: tabId, topicItem: topicItem });
    }
  }
};
</script>
<style scoped>
.post-container {
  padding: 0.3rem;
  overflow: auto;
  background: #fff;
}
.post-thumb {
  float: left;
}
.post-thumb img {
  display: block;
  width: 3rem;
  height: 1.5rem;
}
.post-content {
  /* margin-top: 0.2rem; */
  margin-left: 3.25rem;
}
.post-abbreviations {
  font-size: 0.22rem;
  color: #6e6e6e;
  clear: inherit;

}
.post-title {
  clear: inherit;
  font-weight: bold;
  font-size: 0.28rem;
  color: #333333;
  margin: 0 0 0.1rem 0;
  padding-bottom: 0.2rem
}
.body-sep {
  /*width: 6.9rem;*/
  height: 1px;
  background-color: #e6e6e6;
}

</style>
